package com.situ.mall.orders.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.mall.orders.mapper.OrdersMapper;
import com.situ.mall.orders.model.OrdersModel;
import com.situ.mall.orders.service.IOrdersService;

@Service
public class OrdersServiceImpl implements IOrdersService{

	@Autowired
	private OrdersMapper ordersMapper;
	
	@Override
	public int insert(OrdersModel model) {
		return ordersMapper.insert(model);
	}
	
	@Override
	public int update(OrdersModel model) {
		return ordersMapper.update(model);
	}
	
	@Override
	public int delete(OrdersModel model) {
		return ordersMapper.delete(model);
	}
	
	@Override
	public List<OrdersModel> selectAll(OrdersModel model){
		return ordersMapper.selectAll(model);
	}
	
	@Override
	public List<OrdersModel> selectdemo(OrdersModel model){
		return ordersMapper.selectdemo(model);
	}
}
